package com.ylbh.modules.member.controller;


import com.ylbh.common.pojo.member.dto.AddressDTO;
import com.ylbh.common.utils.CommonResult;
import com.ylbh.common.utils.PageUtils;
import com.ylbh.common.utils.Ref;
import com.ylbh.modules.member.service.AddressService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 *
 * 地址数据
 * @author wjc
 * @date 2019-11-22 10:30:39
 */
@RestController
@RequestMapping("address")
public class AddressController {

    @Autowired
    private AddressService addressService;

    @RequestMapping("queryAddressList")
    public CommonResult<PageUtils> queryAddressList(AddressDTO addressDTO) {
        PageUtils page = addressService.queryAddressList(addressDTO);
        return Ref.ok(page);
    }
}
